// Just a mock data to study

const constantRoutes = [
  // {
  //   path: '/login',
  //   component: 'views/login/index',
  //   hidden: true
  // },
  // {
  //   path: '/404',
  //   component: 'views/error-page/404',
  //   hidden: true
  // },
  // {
  //   path: '*',
  //   redirect: '/404',
  //   hidden: true
  // },
  // {
  //   path: '/',
  //   component: 'layout/Layout',
  //   redirect: 'dashboard',
  //   children: [{
  //     path: 'dashboard',
  //     component: 'views/dashboard/index',
  //     name: 'Dashboard',
  //     meta: {
  //       title: 'Dashboard',
  //       icon: 'dashboard',
  //       affix: true
  //     }
  //   }]
  // },
]


const asyncRoutes = [{
  path: '/carSystem',
  component: 'Layout',
  alwaysShow: true,
  name: 'carSystem',
  meta: {
    title: '测试一级路由',
    icon: 'lock',
    roles: ['admin', 'editor']
  },
  children: [{
    path: 'car',
    component: 'views/car/carList/index',
    name: 'CAR',
    meta: {
      title: '测试二级路由',
      roles: ['admin', 'editor']
    }
  }]
}]


module.exports = {
  constantRoutes,
  asyncRoutes
}
